<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import getPageTitle from "@/utils/get-page-title";
import { getAlbum, getFrame, getAllkzRole, getAllOrderRole, getAllstoreList, getAllDepartmentsList } from '@/utils/getInitData'
export default {
  name: "App",
  // 动态网页标题
  metaInfo() {
    return {
      title: getPageTitle(this.showDynamicTitle && this.dynamicTitle),
    };
  },
  computed: {
    ...mapGetters(["showDynamicTitle", "dynamicTitle"]),
  },
  created() {
    getAlbum()
    getFrame()
    getAllkzRole()
    getAllOrderRole()
    getAllstoreList()
    getAllDepartmentsList()
  },
  methods: {
  }
};
</script>
